package com.huatai.bpmn.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @TableName tb_user
 */
@TableName(value ="tb_user")
@Data
@ApiModel(value = "用户表",description = "用户表")
public class UserEntity implements Serializable {
    /**
     * 主键id
     */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户id
     */
	@ApiModelProperty("用户id")
    private Long userId;

    /**
     * 用户名称
     */
	@ApiModelProperty("用户名称")
    private String userRealName;

	@ApiModelProperty("用户账号")
	private String userAccount;

    /**
     * 更新时间
     */
	@ApiModelProperty("更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
	@ApiModelProperty("创建时间")
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 逻辑删除
     */
	@TableField("is_deleted")
	@ApiModelProperty("逻辑删除")
	@TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
